
task main()
{
	Get flipper gyro value


	if button is pressed

	check if its odd or even

	if its even

	if its less than gyro value
		add power
	if its greater that gyro value
		subtract value

	if odd
		if(Num % 2 == 0)
	{
		// It's even
	}
	else
	{
		// It's odd
	}
}

int FlipperGyroValue = 1;
int FlipperHoldButton = 1;

if(vexRT(Btn8UXmtr2) == 1)
{
	FlipperHoldButton = FlipperHoldButton + 1;
	FlipperGyroValue = SensorValue(FlipperGyro);
}

void HoldTheFlipper
{
	if(FlipperHoldButton % 2 == 0)
	{
		StopTask(flipper);
		if(SensorValue(FlipperGyro) < FlipperGyroValue)
		{
			motor(FlipperMotorRight) = 127;
			motor(FlipperMotorLeft) = 127;
		}
		if(SensorValue(FlipperGyro) > FlipperGyroValue)
		{
			motor(FlipperMotorRight) = -70;
			motor(FlipperMotorLeft) = -70;
		}
	}
	else
	{
		StartTask(Flipper);
	}
}
